package com.cdu.xinmiao.faceRecognition;

import android.hardware.camera2.params.Face;

import java.util.List;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;

public interface FaceRecognitionService {
    @Headers({
            "Content-Type: application/json",
            "Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY"
    })
    @POST("face/v1.0/detect")
    Call<List<Face>> detectFace(@Body RequestBody body);
}
